package Month11.Day11;

import java.util.Scanner;

public class MarketTest {
    public static void main(String[] args) {
        Market market = new Market("名流", "社会路");
        market.show();
        while (true) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入你的选择，1:开卡，2:显示会员信息,3:积分兑换,4:查询剩余积分,5:修改密码,9:退出");
        int choice = in.nextInt();
        if (choice == 1) {
            market.kaiKa();
        }else if (choice==2){
            market.print();
        }else if (choice==3){
            market.exchange();

        } else if (choice==4) {
            market.check();
        }else if (choice==5){
            market.changePassword();
        }else if (choice==9){
            System.out.println("退出");
            return;
        }
        }
    }
}
